from .views import UserUserNameLoginView, UserEmailLoginView, UserInfoViewSet, RegisterCaptchaViewSet

from django.conf.urls import url, include

from rest_framework import routers

# list create
router = routers.DefaultRouter()
router.register('info', UserInfoViewSet),
router.register('captcha/register', RegisterCaptchaViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^token/username', UserUserNameLoginView.as_view()),
    url(r'^token/email', UserEmailLoginView.as_view()),

]
